<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" template="/template/Layout.xhtml">
	<!--    xmlns:c="http://java.sun.com/jsf/jstl/core" -->

	<ui:define name="content">
	
	<f:metadata>
		<f:event type="preRenderView" listener="#{loginController.testeSessaoAdm}"/> 
	</f:metadata>
		<p:tabView id="tbv1">
			<p:tab title="Scrum Master">
				<h:form prependId="false" id="formSM">
					<p:growl id="msg0" />
					<h:panelGrid columns="2" cellpadding="10" styleClass="panelGrid"
						id="grid0">

						<h:outputLabel />
						<h:inputHidden id="idScrumMaster" value="#{scrumMasterController.scrumMaster.id_pessoa}" />
							
						<h:outputLabel for="nomeScrumMaster" value="Nome.:" />

						<p:inputText id="nomeScrumMaster" size="40"
							value="#{scrumMasterController.scrumMaster.nome}"
							onkeyup="this.value = this.value.toUpperCase()" required="true"
							requiredMessage="O Campo Nome é Obrigatório!">
						</p:inputText>
						
						<h:outputLabel for="loginScrumMaster" value="login.:" />
						<p:inputText id="loginScrumMaster" size="40"
							value="#{scrumMasterController.scrumMaster.login}"
							required="true"
							requiredMessage="O Campo Login é Obrigatório!">
						</p:inputText>
						
						<h:outputLabel for="senhaScrumMaster" value="Senha.:" />
						<p:password id="senhaScrumMaster" size="40"
							value="#{scrumMasterController.scrumMaster.senha}" match="confirmarSenha"
							required="true"
							requiredMessage="O Campo Senha é Obrigatório!"
							validatorMessage="As senhas devem ser iguais!">
						</p:password>
						
						<h:outputLabel for="confirmarSenha" value="Confirmar Senha.:" />
						<p:password id="confirmarSenha" size="40"
							value="#{scrumMasterController.scrumMaster.senha}"
							required="true"
							requiredMessage="O Campo de confirmação de senha é Obrigatório!">
						</p:password>


						<p:panel>
							<p:commandButton value="Salvar"
								action="#{scrumMasterController.salvar}"
								image="ui-icon ui-icon-disk" update=":tbv1:formSM">
							</p:commandButton>

							<p:commandButton value="Cancelar"
								actionListener="#{scrumMasterController.clear}"
								image="ui-icon ui-icon-close" update=":tbv1:formSM">
							</p:commandButton>
						</p:panel>
					</h:panelGrid>
				</h:form>
			</p:tab>
		</p:tabView>

		<!--  <h:form id="formtable">
			<p:growl id="msg1" />
			<p:dataTable id="idtabela" var="pessoa" value="" paginator="true"
				rows="10" emptyMessage="Nenhum regitro encontrado"
				paginatorTemplate=" {{CurrentPageReport}  {FirstPageLink} {PreviousPageLink}
                             {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
				rowsPerPageTemplate="5,10,15">
				<f:facet name="header">Lista de Pessoas</f:facet>
				<p:column>
					<f:facet name="header">
						<h:outputText value="Nome" />
					</f:facet>
					<h:outputText value="TESTE" />
				</p:column>

				<p:column>
					<p:commandButton image="ui-icon ui-icon-pencil" process="@this"
						update=":tbv1:formPessoa">
					</p:commandButton>

					<p:commandButton image="ui-icon ui-icon-close" update="@form">
					</p:commandButton>
				</p:column>
			</p:dataTable>

		</h:form>-->
	</ui:define>

</ui:composition>